package base.sys.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import base.core.api.Result;
import base.sys.api.feign.SysFeign;
import base.sys.api.vo.UserInfo;
import base.sys.service.SysService;

/**
 * @Description
 * @Author Pengwei
 * @CreatDate 2022/1/8 16:27
 */
@RestController
@RequestMapping(SysController.API_PREFIX)
public class SysController implements SysFeign {
    @Autowired
    private SysService baseSysService;

    @Override
    public Result<UserInfo> getUserInfo() {
        String userId = "";
        return Result.success(baseSysService.getUserInfoById(userId));
    }
}